/*
 * create:2016年4月4日 下午8:41:15
 * author:wangds  
 */
package com.cxkj.shop.utils;

import net.wangds.precasting.processor.http.HttpsGetRequestProcessor;
import net.wangds.precasting.processor.http.HttpsPostRequestProcessor;

/**
 * .
 * @author wangds
 *
 */
public final class WeiXinHttpsUtils {
 
  public static String httpsGet(String uri){
    HttpsGetRequestProcessor proc = new HttpsGetRequestProcessor();
    proc.setUrl(uri);
    proc.process();
    return proc.getResult();
  }
  public static String httpsPost(String uri, String body){
    HttpsPostRequestProcessor proc = new HttpsPostRequestProcessor();
    proc.setUrl(uri);
    proc.setBody(body);
    proc.process();
    return proc.getResult();
  }

}
